package com.financing.platform.service;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.CompanyDTO;
import com.financing.platform.dto.CompanyInvitationCodeDTO;

public interface ICompanyService extends IBaseService {
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: addComany 
	* @Description: 添加机构
	* @param   companyDTO
	* @return int   
	* @throws
	 */
	public int addCompany(CompanyDTO companyDTO) throws SQLException;
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: updateCompany 
	* @Description: 更新机构状态
	* @param   companyDTO
	* @return int   
	* @throws
	 */
	public int updateCompany(CompanyDTO companyDTO) throws SQLException;
	
	/**
	 * 
	* @Title: listCompany 
	* @Description:  查询机构列表
	* @param   companyDTO
	* @return List<CompanyDTO>   
	* @throws
	 */
	public List<CompanyDTO> listCompany(CompanyDTO companyDTO);
	
	/**
	 * 
	 * @Title: makeCompanyUser
	 * @Description: 添加机构总账户 
	 * @param @param id
	 * @param @return
	 * @param @throws SQLException   
	 * @return String   
	 * @throws
	 */
	public String makeCompanyUser(CompanyInvitationCodeDTO cic) throws SQLException;
	
}
